package com.es.util.mail;   

import java.io.IOException;
  
public class TestMail {   
       
    public static void main(String[] args) throws IOException {   
        MailInfo mailinfo=new MailInfo();  
        String []ToAddress={"csq39@126.com"};   
        mailinfo.setToAddress(ToAddress);   
        
        mailinfo.setSubject("-----邮件测试11----");   
        mailinfo.setContent("<a href='#'>hiao的和</a>");//网页内容   
        SendMail sm=new SendMail();   
        sm.sendHtmlMail(mailinfo);
       /* if(sm.sendAttach(mailinfo))   
            System.out.println("邮件发送成功");   
        else  
            System.out.println("邮件发送失败"); */  
           
    }   
  
}  
